package com.java.mongodbtest.repository;

import com.java.mongodbtest.entity.Comment;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author huxb
 * @date 2020/9/18 0018 下午 1:59
 * @Desciption
 */
public interface CommentRepository extends MongoRepository<Comment, String> {

    /**
     * 根据文章id查询
     * @param article
     * @return
     */
    List<Comment> findByArticleid(String article);
}
